package com.msa.msaportal.service.impl;

import com.msa.msaportal.dao.IUserTileDao;
import com.msa.msaportal.entity.UserTile;
import com.msa.msaportal.service.IUserTileService;

public class UserTileServiceImpl implements IUserTileService {

	
	private IUserTileDao userTileDao;
	
	public IUserTileDao getUserTileDao() {
		return userTileDao;
	}

	public void setUserTileDao(IUserTileDao userTileDao) {
		this.userTileDao = userTileDao;
	}

	@Override
	public UserTile getUserModules(String userId) {
		return userTileDao.getUserModules(userId);
	}

	@Override
	public void insertUserModules(String userId, String moduleIds) {
		// TODO Auto-generated method stub
		userTileDao.insertUserModules(new UserTile(userId,moduleIds));
	}

	@Override
	public void updateUserModules(UserTile userTile) {
		// TODO Auto-generated method stub
		// TODO Auto-generated method stub
		userTileDao.updateUserModules(userTile);
	}
	

}
